import request from '@/utils/request'

// 查询库内数据
export function getMaterialListAPI(data) {
  return request({
    url: 'api/outBoundOrder/materialOutBoundList',
    method: 'get',
    data
  })
}

// 创建出库单
export function createOrderAPI(data) {
  return request({
    url: 'api/productOutBoundOrder/createOutBound',
    method: 'post',
    data
  })
}

// 查出库单列表
export function outboundOrderListAPI(data) {
  return request({
    url: 'api/productOutBoundOrder/getProductOutBoundOrderCodeList',
    method: 'get',
    data
  })
}

// 查
export function getDetailListAPI(params) {
  return request({
    url: 'api/productOutBoundOrderDetail/selectByProductOutBoundCodeNoPage',
    method: 'get',
    params
  })
}

export function selectOrderAPI(data) {
  return request({
    url: '/api/productOutBoundOrderDetail/selectParentPalletAndMaterialWithOutBoundDetail',
    method: 'post',
    data
  })
}

export function outboundAPI(data) {
  return request({
    url: '/api/productOutBoundOrderDetail/callByParentPalletAndMaterialDto',
    method: 'post',
    data
  })
}
